package com.buaa.xxx;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class AddressActivity extends AppCompatActivity {

    private EditText et;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_address);
        et = (EditText)findViewById(R.id.address2);
    }

    public void finish(View view) {
        Intent intent = getIntent();
        //intent.putExtra("msg","I am john");

        intent.putExtra("et",et.getText().toString());
        setResult(99, intent);
        finish();

    }
}
